﻿--[[
   @brief    ui logic for add game
   @author   rickonzhang
   @version  1.0
   @date     2015-03-21
--]]

add_game_dialog_desc =
{
    module_name = 'add_game_dialog',
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.game_library.k_SCAN_RESULT,
                    callback = "add_game_dialog_control.scan_result"
                },

                {
                    id = ierd_tgp.game_library.K_SCAN_DIR,
                    callback = "add_game_dialog_control.scan_dir"
                },

                {
                    id = ierd_tgp.game_library.K_SCAN_END,
                    callback = "add_game_dialog_control.scan_end"
                },
            },

            lua_event = 
            {
                        {
                    id  = main_menue_event.MAIN_MENUE_ADD_GAME,
                    callback = "add_game_dialog_control.open_add_game_dialog"
                },
            },
            reg_service = {
                {
                    id = 'i_service_open_add_game_dialog',
                    callback = "add_game_dialog_control.open_add_game_dialog"
                },
            },
            lua_file = "main_menue_add_game\\control.lua"
        }
    }
};
desc_mgr.add(add_game_dialog_desc);